package com.gnerv.battle.boot.project.guard.model.dto;

import com.gnerv.battle.boot.project.guard.model.bo.MonitorProjectNodeBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class MonitorProjectNodeCreateDTO {

    private String projectUkId;
    private String hostUkId;
    private String datasourceUkId;
    private String middlewareUkId;
    private String middlewareConfig;
    private String name;
    private String configFile;
    private String status;
    private Integer sort;

    public MonitorProjectNodeBO toMonitorProjectNodeBO(){
        MonitorProjectNodeBO monitorProjectNodeBO = new MonitorProjectNodeBO();
        BeanUtils.copyProperties(this, monitorProjectNodeBO);
        return monitorProjectNodeBO;
    }

}

